<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8">
		<title></title>
		<link rel="stylesheet" href="css/bootstrap.min.css" />
	</head>

	<body>
		<div class="container">
			<!-- 首页 -->
			<div class="row text-center" style="margin-top: 100px;">
				<img src="img/logo.bmp" style="height: 200px; margin-bottom:30px; "/>
				<div class="input-group col-xs-8 col-xs-offset-2">
					<input id="searchText" type="text" class="form-control" placeholder="搜索关键字" onkeypress="if(event.keyCode == 13) EsSearch();">
					<span class="input-group-btn">
						<button class="btn btn-primary" style="width: 100px;" onclick="EsSearch();">搜索一下</button>
					</span>
				</div>
			</div>
		</div>
		<!-- <script type="text/javascript" src="js/jquery-1.11.3.min.js"></script> -->
		<script src="//cdn.bootcss.com/jquery/1.12.0/jquery.min.js"></script>
		<script type="text/javascript" src="js/bootstrap.min.js"></script>
		<script type="text/javascript">
			function EsSearch(){
				var searchText = $("#searchText").val();
				//alert(searchText);
				window.location.href = "detail.html?searchText=" + searchText;
			}
			
		</script>
	</body>

</html>